home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / text / html / HTMLDocument$HTMLReader$LinkAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.4 KB  |  33 lines

  1. package javax.swing.text.html;
  2.  
  3. import java.util.Vector;
  4. import javax.swing.text.MutableAttributeSet;
  5. import javax.swing.text.html.HTML.Attribute;
  6.  
  7. class HTMLDocument$HTMLReader$LinkAction extends HTMLDocument.HTMLReader.HiddenAction {
  8.    // $FF: synthetic field
  9.    private final HTMLDocument.HTMLReader this$1;
  10.  
  11.    HTMLDocument$HTMLReader$LinkAction(HTMLDocument.HTMLReader var1) {
  12.       super(var1);
  13.       this.this$1 = var1;
  14.    }
  15.  
  16.    public void start(HTML.Tag var1, MutableAttributeSet var2) {
  17.       String var3 = (String)var2.getAttribute(Attribute.REL);
  18.       if (var3 != null) {
  19.          var3 = var3.toLowerCase();
  20.          if (var3.equals("stylesheet") || var3.equals("alternate stylesheet")) {
  21.             if (this.this$1.styles == null) {
  22.                this.this$1.styles = new Vector(3);
  23.             }
  24.  
  25.             this.this$1.styles.addElement(var1);
  26.             this.this$1.styles.addElement(var2.copyAttributes());
  27.          }
  28.       }
  29.  
  30.       super.start(var1, var2);
  31.    }
  32. }
  33.